package com.hndct.Exception;

import com.hndct.common.result.ResultEnum;

/**
 * @ProjectName: ump-mine
 * @PachageName: com.hndct.Exception
 * @Author: YuZhenDong
 * @Discription: TODO
 * @Date: 2019/4/13
 * ClassName: GobalException
 */
public class GobalException extends RuntimeException{

    public GobalException(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
        this.errMsg = resultEnum.getMsg();
    }

    private int code;

    private String errMsg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
